home *** CD-ROM | disk | FTP | other *** search
- /***********************************/
- /* lxLite installation script file */
- /***********************************/
- '@echo off'
- 'cls'
- call rxFuncAdd "SysOS2Ver", "RexxUtil", "SysOS2Ver"
- call rxFuncAdd "SysGetKey", "RexxUtil", "SysGetKey"
- say "═══════ FRIENDS software presents ═══════"
- say "╖ \// An OS/2 executables packer"
- say "╜─╜//\ ╖ Lots of features, maximal"
- say " //╖ ╖╫─╓─╖ compression, nice interface"
- say " // ╜─╜╨╙─╙── R·E·L·E·A·S·E V·E·R·S·I·O·N"
- say "═════════════════════════════════════════"
- version = SysOS2Ver()
- parse value version with hiver "." lover
- say "OS/2 version "version" detected"
-
- say "********************************************************************"
- say "Please enter the destination directory for program, ex: C:\OS2\APPS:"
- pull destDir
- if (length(destDir) > 3) & (substr(destDir, length(DestDir), 1) = "\")
- then destDir = substr(destDir, 1, length(DestDir) - 1);
- do while stream(destDir,"c","query datetime") = ""
- QueryCreate = Ask("The directory you specified does not exist. Create it? (Y/N)", "YN")
- select
- when QueryCreate = "Y"
- then 'mkDir 'destDir' 1>nul 2>nul'
- otherwise
- say "Aborting..."
- exit
- end
- end
-
- say "********************************************************************"
-
- if ((hiver > 2) | (lover > 11)) /* Repack using Lempel-Ziv for OS/2 v>2.11 */
- then do
- say "Please wait, repacking lxLite using advanced compression method"
- say "Supported by OS/2 2.99 and above (Warp)"
- 'lxLite /y lxLite.exe'
- 'del lxLite2x.cfg 1>nul 2>nul'
- end
- else do
- say "Your OS/2 version does not support Lempel-Ziv compression method"
- 'del lxLite.cfg 1>nul 2>nuk'
- 'ren lxLite2x.cfg lxLite.cfg 1>nul 2>nul'
- end
-
- say "********************************************************************"
- call CopyFile "lxLite.exe"
- call CopyFile("lxLite.cfg")
- call CopyFile("lxLite.doc")
- call CopyFile("lxLite.rus")
- call CopyFile("stub_min.bin")
- call CopyFile("stub_vdm.bin")
- say "********************************************************************"
- if Ask("Installation complete. Do you want to read the WHATSNEW file now?", "YN") = "Y"
- then do
- 'cls'
- 'type whatsnew | more'
- Ask("Press Space to continue", " ")
- end
- 'cls'
- if Ask("Do you wish to clean the install source directory? (Y/N)", "YN") = "Y"
- then do
- say "Please wait, cleaning up ..."
- 'del lxlite*.* 1>nul 2>nul'
- 'del stub_*.* 1>nul 2>nul'
- 'del whatsnew 1>nul 2>nul'
- 'del file_id.diz 1>nul 2>nul'
- 'attrib -r %0 >nul'
- 'del %0 1>nul 2>nul'
- end
- 'cls'
- say " Just another fine product from"
- say " ╖──────────────╖──╖"
- say " ║─╖╖─╖╖╓─╖╖─╖╓─╢╓──"
- say " ╜ ╜ ╨╙──╜ ╙╙─╙──╜"
- say " s·o·f·t·w·a·r·e"
- say "To contact me, write to: Andrew Zabolotny, 2:5030/84.5@FIDOnet"
- say " e-mail: Andrew_Zabolotny@p5.n84.r5030.z2.fidonet"
- exit
-
- CopyFile:
- arg fName
- say "Copying "fName" -> "destDir"\"fName
- 'copy 'fName destDir' 1>nul 2>nul'
- return
-
- Ask:
- parse arg Question,Reply
- say Question
- do until Pos(Answer, Reply) \= 0
- KeyIn = SysGetKey("noecho")
- parse upper var KeyIn Answer
- end
- say Answer
- return Answer
-